<?php defined('SYSPATH') or die('No direct script access.');

class Bounce extends Track {

	protected $campaign;

	public function __construct($recipient_id = '', $campaign='', $hashcookie='')
	{
		parent::__construct();
		$this->url = $this->url.'/bounce';
		$this->file_name = $this->file_name.'.bounce';
		$this->campaign = $campaign;
		$this->hashcookie = $hashcookie;
		$this->recipient_id = $recipient_id;
	}

	public function  saveFileEvent($childArrayData = array()) {
		$data = array(
			'campaign' => $this->campaign,
		);
		parent::saveFileEvent($data);
	}

	public function  doTrack($childArrayData = array()) {
		$data = array(
			'campaign' => $this->campaign,
		);
		parent::doTrack($data);
	}
}